Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  


dxl -> dom -> serialize() -> dxl
~Bella Opponelyings 19.Dec.03 10:32 PM a Web browser
Domino Designer 6.5 All Platforms


just one more thing... when i try a more simple test of just a domparser with input of a previously exported dxl file (3405kb), and output to an empty dxl file, I get a file that is 5009kb. I have tried with different character sets, but the file always comes out larger... and, as stated in my previous post, does not successfully import through the notesdxlimporer.

am i doing something wrong? please advise. thanks.

here is my simple code:


Sub Initialize

Dim session As NotesSession
Dim stream As NotesStream
Dim stream2 As NotesStream
Dim domParser As NotesDOMParser
Dim streamDXL As String

Set session = New NotesSession
Set stream = session.CreateStream
path$ = "c:\data\dxl\"
filename$ = "stream.dxl"
filename$ = path$ & filename$
If Not stream.Open(filename$, "ASCII") Then
Messagebox "Cannot open " & filename$,, "Error"
Exit Sub
End If
' Call stream.Truncate

Set stream2 = session.CreateStream
path$ = "c:\data\dxl\"
filename$ = "stream2.dxl"
filename$ = path$ & filename$
If Not stream2.Open(filename$, "UTF-8") Then
Messagebox "Cannot open " & filename$,, "Error"
Exit Sub
End If
Call stream2.Truncate

streamDXL = stream.readText(EOL_LF)
Set domParser=session.CreateDOMParser(streamDXL, stream2)
domParser.AddXMLDeclNode = True
domParser.ExpandEntityReferences = True
domParser.InputValidationOption = VALIDATE_NEVER
Call domParser.Process
Call domParser.Serialize( )


End Sub




DomParser AND serialize (~Bella Opponely... 19.Dec.03)
. . RE: DomParser AND serialize (~Bella Opponely... 19.Dec.03)
. . dxl -> dom -> serialize() -> dxl (~Bella Opponely... 19.Dec.03)
. . RE: DomParser AND serialize (~Kirk Elreterod... 20.Dec.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS